﻿/**
 * Copyright (C) 2004-2009 D3Systems, Inc. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OMGGateways
{
    public class LoginDetails
    {
        public const int XMPP = 0;
        public const int YAHOO = 1;
        public const int MSN = 2;
        public const int GTALK = 3;
        public const int AIM = 4;
        public const int ICQ = 5;
        public const int SKYPE = 6;
        public const int QQ = 7;
        public const int FACEBOOK = 8;
        public const int MYSPACE = 9;


        /// <summary>
        /// The server address of the XMPP server.
        /// </summary>
        String domain;

        /// <summary>
        /// The Port of the XMPP Server.
        /// </summary>
        int port;

        /// <summary>
        /// Username of the XMPP user.
        /// </summary>
        String username;

        /// <summary>
        /// Password of the XMPP user.
        /// </summary>
        String password;

        /// <summary>
        /// Gateway Type to be used by this login detail.
        /// </summary>
        int gatewayType;

        /// <summary>
        /// The Assembly name of the GWInterface Class to be used.
        /// </summary>
        String assemblyName;

        /// <summary>
        /// The Class name of the GWInterface Class to be used.
        /// </summary>
        String className;

        /// <summary>
        /// Setter / Getter for the Username
        /// </summary>
        public String Username
        {
            get
            {
                return username;
            }
            set
            {
                username = value;
            }
        }

        /// <summary>
        /// Setter / Getter for the Password
        /// </summary>
        public String Password
        {
            get
            {
                return password;
            }
            set
            {
                password = value;
            }
        }

        /// <summary>
        /// Setter / Getter for the Server Domain
        /// </summary>
        public String Domain
        {
            get
            {
                return domain;
            }
            set
            {
                domain = value;
            }
        }

        /// <summary>
        /// Setter / Getter for the Port
        /// </summary>
        public int Port
        {
            get
            {
                return port;
            }
            set
            {
                port = value;
            }
        }

        /// <summary>
        /// Setter / Getter for the Gateway Type
        /// </summary>
        public int GatewayType
        {
            get
            {
                return gatewayType;
            }
            set
            {
                gatewayType = value;
            }
        }

        /// <summary>
        /// Setter / Getter for the Assembly Name
        /// </summary>
        public String AssemblyName
        {
            get
            {
                return assemblyName;
            }
            set
            {
                assemblyName = value;
            }
        }

        /// <summary>
        /// Setter / Getter for the Class Name
        /// </summary>
        public String ClassName
        {
            get
            {
                return className;
            }
            set
            {
                className = value;
            }
        }

    }
}
